package com.jingdianjichi.subject.convert;

import com.jingdianjichi.subject.entity.SubjectInfoBO;
import com.jingdianjichi.subject.entity.SubjectOptionBO;
import com.jingdianjichi.subject.infra.basic.entity.SubjectInfo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author 董代恒
 * @version 1.0
 */
@Mapper
public interface SubjecInfoConvert {

    SubjecInfoConvert INSTANCE = Mappers.getMapper(SubjecInfoConvert.class);


    SubjectInfo subjectInfoBOToSubjectInfo(SubjectInfoBO subjectInfoBO);


    List<SubjectInfoBO> subjectInfoListToSubjectInfoBOList(List<SubjectInfo> subjectInfoList);

    SubjectInfoBO convertOptionToBo(SubjectOptionBO subjectOptionBO);

    SubjectInfoBO convertOptionAndInfoToBo(SubjectOptionBO subjectOptionBO, SubjectInfo subjectInfo);
}
